Skip to content

Conversation

@roomote
Copy link

@roomote roomote bot commented Oct 9, 2025

Summary

This PR attempts to address Issue #8585 by adding the Claude Sonnet 4.5 1M model variant to the Claude Code provider.

Changes

  • Added claude-sonnet-4-5-1m model configuration to anthropicModels with 1M context window
  • Added claude-sonnet-4-5-1m model to claudeCodeModels with appropriate Claude Code settings
  • Configured proper pricing tiers for the 1M context window ( input, 2.50 output)

Testing

  • ✅ All existing tests pass
  • ✅ Type checking passes
  • ✅ Linting passes

Context

As discussed on Discord and requested in #8585, this adds a new model option for Claude Code users who need the extended 1M context window capability.

Fixes #8585

Feedback and guidance are welcome!

- Added claude-sonnet-4-5-1m model configuration to anthropicModels
- Added claude-sonnet-4-5-1m model to claudeCodeModels
- Model has 1M context window with appropriate pricing tiers

Fixes #8585
@roomote roomote bot requested review from cte, jr and mrubens as code owners October 9, 2025 22:21
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Oct 9, 2025
Copy link
Author

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good! The new claude-sonnet-4-5-1m model has been properly added to both the Anthropic and Claude Code providers with correct pricing and configuration. All tests pass successfully.

The changes are well-structured and follow the existing patterns in the codebase. The model configuration correctly:

  • Sets the 1M context window
  • Uses the appropriate tier pricing ($6 input, $22.50 output)
  • Includes cache pricing ($7.50 writes, $0.60 reads)
  • Maintains consistency with the base claude-sonnet-4-5 model's capabilities
  • Properly disables image support for Claude Code (as expected)

No issues found.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 9, 2025
@daniel-lxs
Copy link
Member

Issue closed

@daniel-lxs daniel-lxs closed this Oct 28, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 28, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 28, 2025
@daniel-lxs daniel-lxs deleted the feat/add-claude-sonnet-4-5-1m-model branch October 28, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add Sonnet 4.5 1M Model to Claude Code Provider

4 participants